home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Tools
/
freeWAIS-sf-1.1
/
ui
/
Imakefile
< prev
next >
Wrap
Makefile
|
1995-01-08
|
4KB
|
164 lines
############################ -*- Mode: Makefile -*- ###########################
## Imakefile --
## ITIID : $ITI$ $Header $__Header$
## Author : Ulrich Pfeifer
## Created On : Tue Mar 8 14:48:35 1994
## Last Modified By: Ulrich Pfeifer
## Last Modified On: Wed Sep 7 15:27:39 1994
## Update Count : 66
## Status : Unknown, Use with caution!
###############################################################################
#include "../Install.tmpl"
#ifdef ISO
CTYPE = ../ctype
ISOOBJS = ../ctype/ctype.o
#endif
/* local settings */
/*
Compiler & linker flags.
Compiler debug flag. Use -g for debugging, -O for optimization.
for antique bsd add -DBSD
for newer BSD that needs to use <sys/dir.h>, add -DBSD43
for XENIX add -M3e -Zi
this is for SunOS 4.X
LFLAGS = -Bstatic
dealing with taking an intenet name and resolving it.
set to -lresolv or nothing
RESOLVER = -lresolv
*/
EXTRA_INCLUDES = -I$(PROTDIR) -I../lib # -I$(CTYPE)
CDEBUGFLAGS = -g
VERSION = 84
# command name for a simple shell interface
SHELL_UI_CMD = waissearch
SHELL_UI_SIG_CMD = waissearch-sig
SHELL_UTIL_CMD = waisq
SCREEN_UI_CMD = swais
# For a smaller client, but with no local search,
# use this line this to:
# IR_LIB = ../bin/client.a
#ifdef SYSVREGEXP
REGEXPLIB = ../regexp/libregexp.a
#endif
#ifdef LOCAL_SEARCH
LOCALLIB = ../ir/liblocal.a
#endif
LOCAL_LIBS = $(LOCALLIB) $(REGEXPLIB)
IR_LIB = ../ir/libinv.a
SIG_LIB = ../ir/libsig.a
PROTOCOL_LIB = ../ir/libwais.a
FTW_LIB = ../lib/libftw.a
UI_LIB = $(IR_LIB) $(PROTOCOL_LIB) $(LOCAL_LIBS) $(FTW_LIB) $(IR_LIB)
UI_SIG_LIB = $(SIG_LIB) $(PROTOCOL_LIB) $(LOCAL_LIBS) $(FTW_LIB)
PROTDIR = ../ir
SRCDIR = ./
#
# Files.
#
# List of source files for saber.
SHELL_UI_OBJ = waissearch.o
SCREEN_UI_OBJ = swais.o
all:: $(SHELL_UI_CMD) $(SHELL_UTIL_CMD) $(SCREEN_UI_CMD) wais.el /* $(SHELL_UI_SIG_CMD) gone ? */
QUES = waisq.c
QOBJ = \
waisq.o \
question.o \
wais-ui.o \
document.o
SOBJ = \
swais.o \
question.o \
wais-ui.o \
document.o
OBJS = util.o \
source.o
SSRC = swais.c \
question.c \
document.c \
wais-ui.c
QSRC = waisq.c \
question.c \
document.c \
wais-ui.c
SRC = util.c \
source.c
SRCS = $(SSRC) $(QSRC) $(SRC)
DependTarget()
$(IR_LIB):
(cd ../ir;make libir.a)
$(SIG_LIB):
(cd ../ir;make libsig.a)
$(PROTOCOL_LIB):
(cd ../ir;make libwais.a)
NormalProgramTarget($(SHELL_UTIL_CMD),$(QOBJ) $(OBJS),$(UI_LIB) $(LIB),$(UI_LIB) $(LIBS),-lm $(RESOLVER))
InstallProgram($(SHELL_UTIL_CMD),$(BINDIR))
NormalProgramTarget($(SHELL_UI_CMD),$(SHELL_UI_OBJ),$(UI_LIB),$(UI_LIB),-lm $(RESOLVER))
InstallProgram($(SHELL_UI_CMD),$(BINDIR))
/* gone ?
NormalProgramTarget($(SHELL_UI_SIG_CMD),$(SHELL_UI_OBJ),$(UI_SIG_LIB),$(UI_SIG_LIB),-lm $(RESOLVER))
InstallProgram($(SHELL_UI_SIG_CMD),$(BINDIR))
*/
NormalProgramTarget($(SCREEN_UI_CMD),$(SOBJ) $(OBJS),$(UI_LIB),$(UI_LIB),-lcurses -ltermcap -lm $(RESOLVER))
InstallProgram($(SCREEN_UI_CMD),$(BINDIR))
CppFileTarget(wais.el,wais.el.raw,-DINSTALLROOT=\"$(INSTALLROOT)\",wais.el.raw)
install::
MakeDir($(LISPDIR))
InstallNonExec(wais.el,$(LISPDIR))
veryclean:: clean
$(RM) $(SHELL_UI_CMD) $(SHELL_UI_SIG_CMD) $(SHELL_UTIL_CMD) $(SCREEN_UI_CMD) wais.el
#ifdef SYSVREGEXP
$(REGEXPLIB):
cd ../regexp; $(MAKE)
#endif
#ifdef LOCAL_SEARCH
$(LOCALLIB):
cd ../ir; $(MAKE)
#endif